﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tong;
public partial class Use_User_Del : System.Web.UI.Page
{ 
    /// <summary>
    /// 用户的id 
    /// </summary>
    string id;
    /// <summary>
    /// 
    /// 用户名
    /// </summary>
    string use;
    /// <summary>
    /// 数据操作通用类 实例 TextData
    /// </summary> 
    public TongUse TextData = new TongUse();

    /// <summary>
    /// 系统安装绝对路径
    /// </summary>
    public string Abs_Path = TongUse.SysPath;
    protected void Page_Load(object sender, EventArgs e)
    {
        //删用户数据
        DelUse();
    }

    /// <summary>
    /// 删除用户数据
    /// </summary>
    protected void DelUse()
    {
        id = Request.QueryString["id"].ToString();
        if (id != null && id != "")
        {

            TextData.SqlDataSave("delete [Use] where Use_id  = " + id);//删用户数据
            TextData.Res.Response.Redirect("user_Show.aspx");//程序从新加载新页面

        }
        else
        {
            TextData.Err("删除用户时出错;原因可能为您没有输入系统所必要的参数");
        }

    }
}
